
package cn.blankm.videokernel.impl.media;

import android.content.Context;

import cn.blankm.videokernel.factory.PlayerFactory;

/**
 * Copyright (C), 1999-2022
 * Author qfmeng@iflytek.com
 * Date 2022/5/26 17:48
 *
 * Description: 不推荐，系统的MediaPlayer兼容性较差，建议使用IjkPlayer或者ExoPlayer
 *   revise: 抽象工厂具体实现类
 */
public class MediaPlayerFactory extends PlayerFactory<AndroidMediaPlayer> {

    public static MediaPlayerFactory create() {
        return new MediaPlayerFactory();
    }

    @Override
    public AndroidMediaPlayer createPlayer(Context context) {
        return new AndroidMediaPlayer(context);
    }
}
